package com.ddd.mill.infrastructure.persistent.dao.product;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ddd.mill.api.product.dto.request.GetProductPageParamDto;
import com.ddd.mill.api.product.dto.response.GetProductPageDto;
import com.ddd.mill.domain.aggregate.product.entity.Product;
import org.apache.ibatis.annotations.Param;

/**
 * @author liu
 * @title: ProductDao
 * @projectName trading-center
 * @date 2020/11/3010:37
 */
public interface ProductDao extends BaseMapper<Product> {
    IPage<GetProductPageDto> getProductPage(Page page, @Param("param") GetProductPageParamDto param);
}
